import service from "../request.js";

export function getNewsList(query) {
  return service({
    method: "post",
    url: "/news/list",
    data: query,
  });
}
export function queryNewsList(query) {
  return service({
    method: "post",
    url: "/news/livequery",
    data: query,
  });
}
export function save(query) {
  return service({
    method: "post",
    url: "/news/save",
    data: query,
  });
}
export function update(query) {
  return service({
    method: "put",
    url: "/news/update",
    data: query,
  });
}
export function remove(query) {
  return service({
    method: "delete",
    url: "/news/delete",
    data: query,
  });
}
